import unittest
from typing import List
from solution import Solution

class TestSolution(unittest.TestCase):
    def test_restoreIpAddresses(self):
        solution = Solution()
        self.assertEqual(solution.restoreIpAddresses("25525511135"), ["255.255.11.135", "255.255.111.35"])
        self.assertEqual(solution.restoreIpAddresses("0000"), ["0.0.0.0"])
        self.assertEqual(solution.restoreIpAddresses("1111"), ["1.1.1.1"])
        self.assertEqual(solution.restoreIpAddresses("010010"), ["0.10.0.10", "0.100.1.0"])
        self.assertEqual(solution.restoreIpAddresses("123456"), [])
        self.assertIn(solution.restoreIpAddresses("25525511135")[0], ["255.255.11.135", "255.255.111.35"])
        self.assertIn(solution.restoreIpAddresses("25525511135")[1], ["255.255.11.135", "255.255.111.35"])

if __name__ == '__main__':
    unittest.main(argv=['first-arg-is-ignored'], exit=False)
